package cc.comac.mom.api;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import cc.comac.mom.bean.EquipRepairRepositoryRepairDoc;
import cc.comac.mom.util.ResultBean;
@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipRepairRepositoryRepairDocService{
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/previewPdf",method = RequestMethod.GET)
	public ResultBean previewPdf (@RequestParam(value = "request") HttpServletRequest request, HttpServletResponse response,@RequestParam(value = "repairDocId") long repairDocId);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/download",method = RequestMethod.POST)
	public ResultBean download (@RequestParam(value ="documentId" ) Long documentId,@RequestParam(value = "response") HttpServletResponse response);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipRepairRepositoryRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/save",method = RequestMethod.POST)
	public ResultBean save(@RequestBody EquipRepairRepositoryRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody EquipRepairRepositoryRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody EquipRepairRepositoryRepairDoc obj);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/saveBatch",method = RequestMethod.POST)
	public ResultBean save(@RequestBody List<EquipRepairRepositoryRepairDoc> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/updateBatch",method = RequestMethod.POST)
	public ResultBean update(@RequestBody List<EquipRepairRepositoryRepairDoc> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/deleteBatch",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody List<EquipRepairRepositoryRepairDoc> list);
	
	@RequestMapping(value = "/p/cs/EquipRepairRepositoryRepairDocService/getById",method = RequestMethod.GET)
	public EquipRepairRepositoryRepairDoc getById(@RequestParam(value = "id") long id);
}
